package com.attendance.service;

import com.attendance.common.CommonResult;
import com.attendance.pojo.Pages;
import com.attendance.pojo.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface StudentService {
    //    根据条件查学生信息
    CommonResult selectStudent(Student student, Pages page);

    //    根据学生id查学生
    CommonResult selectStudentById(int id);

    //    更新学生基本信息
    CommonResult updateStudentInfo(Student student);

    //    更改学生状态
    CommonResult modifyStudentStatus(Student student);

    //    新增学生信息
    CommonResult addStudentInfo(Student student);

    //    根据课程id查询学生
    CommonResult selectStudentInfoByCourseId(int id, Pages pages);

    //修改图片（上传）
    CommonResult upLoadImg(MultipartFile myfile, int id);

}
